home *** CD-ROM | disk | FTP | other *** search
/ Workplace Effectiveness: Critical Thinking Skills / Workplace Effectiveness: Critical Thinking Skills.iso / pc / Files / Define.dxr / 00029_rollover handlers.ls < prev    next >
Encoding:
Text File  |  1998-09-15  |  793 b   |  37 lines

  1. global balloonSprite
  2.  
  3. on spriteRollers
  4.   case the rollOver of
  5.     2:
  6.       showBalloon("v")
  7.     3:
  8.       showBalloon("w")
  9.     4:
  10.       showBalloon("x")
  11.     5:
  12.       showBalloon("y")
  13.     otherwise:
  14.       set the loc of sprite balloonSprite to point(-2222, -2222)
  15.   end case
  16. end
  17.  
  18. on showBalloon artName
  19.   set the member of sprite balloonSprite to member (artName && "balloon")
  20.   set the loc of sprite balloonSprite to point(320, 240)
  21. end
  22.  
  23. on showRoller thisSprite, artName
  24.   puppetSprite(thisSprite, 1)
  25.   set the member of sprite thisSprite to member (artName && "roll")
  26. end
  27.  
  28. on rollSound thisSprite, thisName
  29.   global gLastRoller
  30.   if thisSprite <> gLastRoller then
  31.     if not soundBusy(1) then
  32.       puppetSound(thisName && "sound")
  33.       set gLastRoller to thisSprite
  34.     end if
  35.   end if
  36. end
  37.